import 'package:json_annotation/json_annotation.dart';

part 'auth_result_model.g.dart';

@JsonSerializable()
class AuthResultModel {
  @JsonKey(name: 'expiredTimeLong')
  final int expiredTimeLong;

  @JsonKey(name: 'loginStateAccessToken')
  final String? loginStateAccessToken;

  factory AuthResultModel.fromJson(Map<String, dynamic> json) =>
      _$AuthResultModelFromJson(json);

  Map<String, dynamic> toJson() => _$AuthResultModelToJson(this);

  AuthResultModel({
    required this.expiredTimeLong,
    this.loginStateAccessToken,
  });
}

